import requests

class LoginApi(object):
    @classmethod
    def login(cls, json_data):
        url = "http://ihrm-test.itheima.net/api/sys/login"
        resp = requests.post(url, json=json_data)
        return resp